<?php
/* @var $this \yii\web\View */
/* @var $content string */

use frontend\assets\AppAsset;
use yii\helpers\Html;
frontend\assets\AppAsset::register($this);
$this->registerMetaTag(["name"=>"keywords","content"=>Yii::$app->controller->keywords]);
$this->registerMetaTag(["name"=>"description","content"=>Yii::$app->controller->description]);
?>

<?php $this->beginPage() ?>
    <!DOCTYPE html>
    <html>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?1658dec85bd2e5dbefe057b949ad2b74";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>

    <head>
        <meta http-equiv='X-UA-Compatible' content='IE=edge'>
        <title><?= Html::encode(Yii::$app->controller->title) ?></title>
        <meta charset="<?= Yii::$app->charset ?>">
        <script src='/statics/js/public/nprogress.js'></script>
        <?php $this->head() ?>
        <?=$this->registerJs("
requirejs(['/statics/js/public/control.js?'+(new Date()).getTime()], function () {
        require(['main']);;
    });
",\yii\web\View::POS_END)?>

    </head>
    <?php $this->beginBody() ?>
    <body>
    <header class="header-area header-one">
        <div class="inner-header">
            <div class="row">
                <?=$this->render("header")?>
            </div>
        </div>
    </header>
    <div class="content">
        <div class="container">
            <div class="row">
        <div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
            <?= $content?>
        </div>
    </div>
        </div>
    </div>
    <?=$this->render("footer")?>
    </body>
    <?php $this->endBody() ?>
    </html>
    <script>NProgress.start();</script>
    <script>
        window.onload = function () {
            NProgress.done();
        }
    </script>
<?php $this->endPage() ?>
